package com.test.fastdfs.demo.service;

import com.test.fastdfs.demo.entity.FileModel;
import org.springframework.data.domain.Example;

import java.util.List;

public interface FileService {
    /**
     *
     * @param fileModel
     * @return
     */
    FileModel createFile(FileModel fileModel);

    /**
     *
     * @param fileModel
     */
    void deleteFile(FileModel fileModel);

    /**
     *
     * @param e
     * @return
     */
    List<FileModel> findAllByCondition(Example<FileModel> e);
}
